import request from "@/utils/request";

// 分页字典详情查询
export function listPageDictionaryDetails(data) {
  return request({
    url: "/dictionary-detail/pages",
    method: "get",
    params: data,
  });
}

// 新增字典详情
export function insertDictionaryDetail(data) {
  return request({
    url: "/dictionary-detail",
    method: "post",
    data,
  });
}

// 编辑字典详情
export function updateDictionaryDetail(data) {
  return request({
    url: "/dictionary-detail",
    method: "put",
    data,
  });
}

// 批量删除字典详情
export function deleteDictionaryDetails(data) {
  return request({
    url: "/dictionary-detail",
    method: "delete",
    params: data,
  });
}

// 删除字典详情
export function deleteDictionaryDetail(data) {
  return request({
    url: "/dictionary-detail/" + data,
    method: "delete",
  });
}
